<?php

class CompoundAssignmentOperator
{
    const PLUS_ASSIGN = '+=';
    const MINUS_ASSIGN = '-=';
    const MULTIPLY_ASSIGN = '*=';
    const DIVIDE_ASSIGN = '/=';
    const MODULUS_ASSIGN = '%=';
    const CONCATENATE_ASSIGN = '.=';


    static public function Defines($const)
    {
        $cls = new ReflectionClass(__CLASS__);
        foreach($cls->getConstants() as $key=>$value)
        {
            if($value == $const)
            {
                return true;
            }
        }
        
        return false;
    }
}

?>
